using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using Microsoft.DirectX.DirectDraw;
using TowerDefense_Dx.Core;

namespace TowerDefense_Dx.Screen
{
   public class MainMenuScreen : DxScreen
    {
        private DxImage _background;
        private string _backgroundPath;



        public MainMenuScreen(DxInitGraphics graphics, Size size, Point position, DxMouse mouse,string backgroundImagePath):
            base(graphics,size,position,mouse)
        {
            _backgroundPath = backgroundImagePath;
        }
        public override void Init()
        {
            _background = new DxImage(_backgroundPath, _graphics.GraphicsDevice);
        }
        public override void Update(double deltaTime)
        {
            base.Update(deltaTime);
        }
        public override void Draw(double deltaTime)
        {
            _background.DrawFast(0, 0, _screenSurface, DrawFastFlags.Wait);
            _graphics.BackBuffer.DrawFast(0, 0, _screenSurface, DrawFastFlags.Wait);
        }
    }
}
